<?php
defined("_VALID_ACCESS") || die('Direct access forbidden');
class Eyeworx_Inventory_SunglassesInstall extends ModuleInstall {

    public function install() {
        try {
            $contactlens_recordset = new Eyeworx_Inventory_Sunglasses_RBO_RBOSunglasses();
            $contactlens_recordset->install();
            $contactlens_recordset->add_default_access();
            $contactlens_recordset->set_caption('Sunglasses');
        } catch (Exception $e) {
            return false;
        }
        return true;
    }

    public function uninstall() {
        try {
            $contactlens_recordset = new Eyeworx_Inventory_Sunglasses_RBO_RBOSunglasses();
            $contactlens_recordset->uninstall();
        } catch (Exception $e) {
            return false;
        }
        return true;
    }

    public function requires($v) {
        return array(
            array('name'=>'Base/Lang','version'=>0),
            array('name'=>'Utils/RecordBrowser','version'=>0),
        );
    }

    public function info() {
        return array(
            'Author'=>'Pauline Joy Garcia',
            'Description'=>'Email: paulinejoygarcia@gmail.com'
        );
    }

    public function version() {
        return array('1.0');
    }

    public function simple_setup() {
        return array('package'=>__('Eyeworx'), 'option'=>__('Solutions Import'));
    }
}

?>